/**
 * JungoMobileWeb
 * DealDao.java
 * 
 * Copyright 2013 Teachizen
 * Written by cloudstick
 *	2013. 8. 11. first written.
 *
 * note:
 */
package com.jungo.web.dao;

import java.util.List;

import com.jungo.web.bean.Deal;
import com.jungo.web.bean.Favorite;
import com.jungo.web.bean.Product;

/**
 * @author cloudstick
 *
 */
public interface DealDao {

	public List<Product> getProductByFavorite(Favorite favorite);
	public Favorite getFavoriteByProduct(Product product);
	
	public Integer getDealId();
	public void updateFavoriteCount(int pid);
	public boolean checkDuplicateDeal(Deal deal);
	
	public void setDeal(Deal deal);
	public List<Deal> getDeals(int pid);
	public Product getMatchedProductByFavorite(int fid);
	
	public void updateDealStatus(Deal deal);
}
